package org.jeecg.modules.system.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.apache.commons.lang.StringUtils;
import org.jeecg.modules.system.entity.BizEquipmentEntity;
import org.jeecg.modules.system.mapper.BizEquipmentMapper;
import org.jeecg.modules.system.service.IBizEquipmentService;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service("bizEquipmentServiceImpl")
public class BizEquipmentServiceImpl extends ServiceImpl<BizEquipmentMapper, BizEquipmentEntity> implements IBizEquipmentService {
    @Override
    public List<Map<?, ?>> getStatusCount(String siteId) {
        if(StringUtils.isEmpty(siteId)){
            siteId = null;
        }

        return this.baseMapper.getStatusCount(siteId);
    }
}
